<%@ page language="java"
	import="java.util.*,java.lang.*,java.text.SimpleDateFormat,com.firesrc.bean.MailContent"
	contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>邮件内容模版列表</title>
</head>
<body>
	<h2>邮件内容模版列表</h2>
	<%
		List<MailContent> list = (List) request.getAttribute("list");
	%>
	<form action="">
		<input type="hidden" name="type" value="add">
		<table border="1">
			<tbody align="left">
				<tr>
					<td>主题名称</td>
					<td>主题内容</td>
					<td>类型</td>
					<td>状态</td>
					<!-- <td>删除</td> -->
				</tr>
				<%
					for (MailContent subject : list) {
				%>
				<tr>
					<td><%=subject.getName()%></td>
					<td><pre><%=subject.getText()%></pre></td>
					<td><%=subject.getKind()%></td>
					<td><%=subject.getState()%></td>
					<%-- <td><a
						href="/MailSubjectServlet?type=delete&id=<%=subject.getId()%>"><font
							color="green">删除</font></a></td> --%>
				</tr>
				<%
					}
				%>
			</tbody>
		</table>
	</form>
</body>
</html>